package com.itheima.chapter12.enum0;

public class EnumDemo {
    public static void main(String[] args) {
        method(Season.SUMMER);
    }
    public static void method(Season season){
        switch (season){
            case SPRING:
                System.out.println("春天");
                break;
            case SUMMER:
                System.out.println("夏天");
                break;
            case AUIUMN:
                System.out.println("秋天");
                break;
            case WINTER:
                System.out.println("冬天");
                break;
        }
    }
}

enum Season{
    SPRING,SUMMER,AUIUMN,WINTER;
}